package com.jfunit.java;

import com.jfunit.java.helper.AopHelper;
import com.jfunit.java.helper.BeanHelper;
import com.jfunit.java.helper.ClassHelper;
import com.jfunit.java.helper.ControllerHelper;
import com.jfunit.java.helper.IocHelper;
import com.jfunit.java.util.ClassUtil;

/**
 * 加载相应的Helper类
 * @author Administrator
 *
 */
public final class HelperLoader {

    public static void init(){
        //AopHelper要在IocHelper之前加载，因为首先要通过Aophelper获取代理对像，才能通过IocHelper进行依赖注入
        Class<?>[] classList = {
                ClassHelper.class,
                BeanHelper.class,
                AopHelper.class,
                IocHelper.class,
                ControllerHelper.class
        };
        
        for (Class<?> cls : classList) {
            System.out.println("HelperLoader-cls:"+cls.getName());
            ClassUtil.loadClass(cls.getName(),true);
        }
    }
}
